import { default as request, cloud } from '@/framework/utils/request'

export default ({
  // 线索数据
  getClueDataPie(data = {}) {
    return request({
      url: `${cloud.investment}/workAnalyse/clueDataPie`,
      method: 'post',
      data,
    })
  },
  // 调研线索
  getClueResearch(data = {}) {
    return request({
      url: `${cloud.investment}/workAnalyse/clueResearch`,
      method: 'post',
      data
    })
  },
  // 表格数据
  getTableDataPage(data = {}) {
    return request({
      url: `${cloud.investment}/workAnalyse/getTableDataPage`,
      method: 'post',
      data
    })
  },
  // 项目状态
  getProjectStatus(data = {}) {
    return request({
      url: `${cloud.investment}/workAnalyse/projectStatus`,
      method: 'post',
      data
    })
  },
  
  // 投资金额
  getInvestMonery(data = {}) {
    return request({
      url: `${cloud.investment}/riskAnalyse/investMonery`,
      method: 'post',
      data
    })
  },
  // 投资占比
  getInvestProportion(data = {}) {
    return request({
      url: `${cloud.investment}/riskAnalyse/investProportion`,
      method: 'post',
      data
    })
  },
  // 漏斗图
  getTaperStateType(data = {}) {
    return request({
      url: `${cloud.investment}/riskAnalyse/getTaperStateType`,
      method: 'post',
      data
    })
  },
  // 项目情况
  getStateType(data = {}) {
    return request({
      url: `${cloud.investment}/riskAnalyse/getStateType`,
      method: 'post',
      data
    })
  },
})
